$(document).ready(function(){

  $("#sync").click(function() {
      let gettingTree = browser.bookmarks.getTree();
      gettingTree.then(logTree, onRejected);
      return false;
    });
});